﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WeatherHistory.Data.Entities;

public class Account : EntityBase
{
    public long Id { get; set; }

    [Required]
    [Column(TypeName = "varchar(128)")]
    public string FirstName { get; set; }

    [Required]
    [Column(TypeName = "varchar(128)")]
    public string LastName { get; set; }

    [Required]
    [Column(TypeName = "varchar(128)")]
    public string Email { get; set; }

    [Required]
    [Column(TypeName = "varchar(64)")]
    public string PasswordHash { get; set; }
    public virtual ICollection<Region> UpdatedRegions { get; set; }
}